package com.sg.service.biz.app.impl;

import com.sg.common.util.RedisUtil;
import com.sg.dto.biz.app.req.AddEvaTempEvaSetComReqDto;
import com.sg.dto.biz.app.req.QueryAppraiserWsetDetailListComReqDto;
import com.sg.dto.biz.app.res.AddEvaTempEvaSetComRespDto;
import com.sg.dto.biz.app.res.QueryAppraiserWsetDetailListComRespDto;
import com.sg.dto.integration.component.QueryOptionMatchResultExtendDetailComReqDto;
import com.sg.dto.integration.component.QueryOptionMatchResultExtendDetailComRespDto;
import com.sg.service.base.app.*;
import com.sg.service.biz.app.IndexSystemService;
import com.sg.service.biz.app.OffStateService;
import com.sg.service.biz.app.nb.NbEvaTempEvaSet;
import com.sg.common.exception.Assert;
import com.wicket.okrcomponent.integration.ConfSchemeService;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Service
public class EvaTempEvaSetServiceImpl implements com.wicket.okrapp.biz.service.EvaTempEvaSetService {
    @Resource
    private RedisUtil redisUtil;
    //@Resource
    //private MCustomFields2Service mCustomFields2Service;
    @Resource
    private NbEvaTempEvaSet nbEvaTempEvaSet;
    @Resource
    private ConfSchemeService confSchemeService;
    @Resource
    private MOmsEvaluationObjectService mOmsEvaluationObjectService;
    @Resource
    private MOmsEvaluationObjectTargetCycleService mOmsEvaluationObjectTargetCycleService;
    @Resource
    private MOmsEvaluationFillRoleService mOmsEvaluationFillRoleService;
    @Resource
    private MOmsEvaluationTemplateEvaluationSetService mOmsEvaluationTemplateEvaluationSetService;
    @Resource
    private IndexSystemService indexSystemService;
    @Resource
    private MOmsEvaluationTemplateService mOmsEvaluationTemplateService;
    @Resource
    private OffStateService offStateService;
//@Resource
    //private undefinedService undefinedService;

    /**
     * D3-查询评价人权重设置明细列表(公共)[3462]
     * gen by moon at 2/19/2023, 1:37:35 PM
     */
    @Trace(operationName = "D3-查询评价人权重设置明细列表(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public QueryAppraiserWsetDetailListComRespDto queryAppraiserWsetDetailListCom(QueryAppraiserWsetDetailListComReqDto reqDto) {


        QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto_1 = null;
//步骤0: D2-3查询选项匹配结果扩展信息详情(公共) - queryOptionMatchResultExtendDetailCom
        QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
        QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto = new QueryOptionMatchResultExtendDetailComReqDto();
        queryOptionMatchResultExtendDetailComReqDto.setResultAspObjType("EVA_TEMP");//sourceId:142609_1
        queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("FALSE");//sourceId:308659_1
        if (reqDto != null) {
            queryOptionMatchResultExtendDetailComReqDto.setConfOptionCode(reqDto.getConfOptionCode());//SimpleFieldAssign//sourceId:142606_1
            queryOptionMatchResultExtendDetailComReqDto.setConfItemCode(reqDto.getConfItemCode());//SimpleFieldAssign//sourceId:142608_1
            queryOptionMatchResultExtendDetailComReqDto.setResultAspObjId(reqDto.getResultAspObjId());//SimpleFieldAssign//sourceId:142610_1
        }

        /*D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)[3232]   */
        Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfOptionCode(), "D3-查询评价人权重设置明细列表(公共)-D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)-选项标识不能为空", false);
        Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(), "D3-查询评价人权重设置明细列表(公共)-D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)-配置项标识不能为空", false);
        Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjId(), "D3-查询评价人权重设置明细列表(公共)-D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)-答案归属对象ID不能为空", false);
        Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getResultAspObjType(), "D3-查询评价人权重设置明细列表(公共)-D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)-答案归属对象类型不能为空", false);
        Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(), "D3-查询评价人权重设置明细列表(公共)-D2-3查询选项匹配结果扩展信息详情(查询评价角色权重)-是否标准答案不能为空", false);
        queryOptionMatchResultExtendDetailComRespDto = confSchemeService.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData();


        queryOptionMatchResultExtendDetailComRespDto_1 = queryOptionMatchResultExtendDetailComRespDto;

        QueryAppraiserWsetDetailListComRespDto retData = new QueryAppraiserWsetDetailListComRespDto();
        if (queryOptionMatchResultExtendDetailComRespDto_1 != null) {
            retData.setOptionResultId(queryOptionMatchResultExtendDetailComRespDto_1.getOptionResultId());//SimpleFieldAssign//sourceId:142619_1
            retData.setEndValue(queryOptionMatchResultExtendDetailComRespDto_1.getEndValue());//SimpleFieldAssign//sourceId:142620_1
            retData.setExtensionField1(queryOptionMatchResultExtendDetailComRespDto_1.getExtensionField1());//SimpleFieldAssign//sourceId:142621_1
        }


        return retData;
    }

    /**
     * D3-3新增评价模板评价设置(公共)[3225]
     * gen by moon at 10/2/2022, 11:24:08 PM
     */
    @Trace(operationName = "D3-3新增评价模板评价设置(公共)")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    @Transactional(rollbackFor = Exception.class)
    @Override
    public AddEvaTempEvaSetComRespDto addEvaTempEvaSetCom(AddEvaTempEvaSetComReqDto reqDto) {


//      //步骤0: 3-2-05查询评价对象详情 - queryEvaObjectDetail
//     OmsEvaluationObject omsEvaluationObject = null;
//    QueryEvaObjectDetailReq queryEvaObjectDetailReq=new QueryEvaObjectDetailReq();
//  queryEvaObjectDetailReq.setTableTypeCode("OMS_TARGET");//sourceId:315173_1
//queryEvaObjectDetailReq.setArchivngType("NOT_ARCHIVE");//sourceId:315176_1
//queryEvaObjectDetailReq.setIsArchive("FALSE");//sourceId:315177_1
//queryEvaObjectDetailReq.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:315178_1
//if(reqDto!=null){
//      queryEvaObjectDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:315175_1
//queryEvaObjectDetailReq.setEntityId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:315174_1
//    }
//
//    /*3-2-05查询评价对象ID[3463]   */
//    Assert.isNull(queryEvaObjectDetailReq.getEvaluationTemplateId(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-冗余评价模板ID不能为空",false);
//Assert.isNull(queryEvaObjectDetailReq.getEntityId(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-内容表主键ID不能为空",false);
//Assert.isNull(queryEvaObjectDetailReq.getTableTypeCode(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-内容表类型编码不能为空",false);
//Assert.isNull(queryEvaObjectDetailReq.getArchivngType(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-存档类型不能为空",false);
//Assert.isNull(queryEvaObjectDetailReq.getIsArchive(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-是否存档不能为空",false);
//Assert.isNull(queryEvaObjectDetailReq.getSpaceId(),"D3-3新增评价模板评价设置(公共)-3-2-05查询评价对象ID-创建于空间ID不能为空",false);
//      omsEvaluationObject = mOmsEvaluationObjectService.queryEvaObjectDetail(queryEvaObjectDetailReq);
//      Assert.isTrue(omsEvaluationObject== null||  omsEvaluationObject.getEvaluationObjectId() ==null,"返回值不能为空",false);
//
//
//
////步骤1: 3-2-02查评价模板详情 - queryEvaTempDetail
//     OmsEvaluationTemplate omsEvaluationTemplate = null;
//    QueryEvaTempDetailReq queryEvaTempDetailReq=new QueryEvaTempDetailReq();
//  if(reqDto!=null){
//      queryEvaTempDetailReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:347574_1
//    }
//
//    /*3-2-02查评价模板详情[2316]   */
//    Assert.isNull(queryEvaTempDetailReq.getEvaluationTemplateId(),"D3-3新增评价模板评价设置(公共)-3-2-02查评价模板详情-评价模板ID不能为空",false);
//      omsEvaluationTemplate = mOmsEvaluationTemplateService.queryEvaTempDetail(queryEvaTempDetailReq);
//
//
//
//
////步骤2: 3-3-09查被评对象目标周期详情 - queryEvaObjTargetCycleDetail
//     OmsEvaluationObjectTargetCycle omsEvaluationObjectTargetCycle = null;
//    if(omsEvaluationObject !=null){
//          QueryEvaObjTargetCycleDetailReq queryEvaObjTargetCycleDetailReq=new QueryEvaObjTargetCycleDetailReq();
//  queryEvaObjTargetCycleDetailReq.setEvaObjEntityId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:122504_1
//queryEvaObjTargetCycleDetailReq.setEvaObjTableTypeCode("OMS_FRAMEWORK_SPACE");//sourceId:122505_1
//queryEvaObjTargetCycleDetailReq.setEvaObjTypeCode("EVA_OBJECT");//sourceId:122506_1
//queryEvaObjTargetCycleDetailReq.setTreeTypeCode("PLAN_TREE");//sourceId:122503_1
//queryEvaObjTargetCycleDetailReq.setTargetCycleContentTypeCode("TARGET");//sourceId:122508_1
//queryEvaObjTargetCycleDetailReq.setIsParentCycle("TRUE");//sourceId:122533_1
//queryEvaObjTargetCycleDetailReq.setIsArchive("FALSE");//sourceId:122512_1
//queryEvaObjTargetCycleDetailReq.setArchivngType("NOT_ARCHIVE");//sourceId:122531_1
//if(omsEvaluationObject!=null){
//      queryEvaObjTargetCycleDetailReq.setEvaluationObjectId(omsEvaluationObject.getEvaluationObjectId());//SimpleFieldAssign//sourceId:315179_1
//    }
//if(reqDto!=null){
//      queryEvaObjTargetCycleDetailReq.setTargetCycleContentId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:122507_1
//queryEvaObjTargetCycleDetailReq.setTargetId(reqDto.getTargetId());//SimpleFieldAssign//sourceId:122513_1
//    }
//
//    /*3-3-09查规划树目标评价对象目标父周期ID[2313]   */
//    Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaluationObjectId(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-冗余评价对象ID不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjEntityId(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-被评对象内容表主键ID不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTableTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-被评对象内容表类型编码不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getEvaObjTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-被评对象类型编码不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getTreeTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-树类型编码不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-关联目标内容类型编码不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetCycleContentId(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-关联目标内容ID不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getIsParentCycle(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-是否父周期不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getTargetId(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-冗余目标ID不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getIsArchive(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-是否存档不能为空",false);
//Assert.isNull(queryEvaObjTargetCycleDetailReq.getArchivngType(),"D3-3新增评价模板评价设置(公共)-3-3-09查规划树目标评价对象目标父周期ID-存档类型不能为空",false);
//      omsEvaluationObjectTargetCycle = mOmsEvaluationObjectTargetCycleService.queryEvaObjTargetCycleDetail(queryEvaObjTargetCycleDetailReq);
//      Assert.isTrue(omsEvaluationObjectTargetCycle== null||  omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId() ==null,"返回值不能为空",false);
//
//
//           }
//
////步骤3: 3-2-06查评价填报角色列表 - queryEvaFillRoleList
//     List<OmsEvaluationFillRole> listOmsEvaluationFillRole =new ArrayList<>();
//    QueryEvaFillRoleListReq queryEvaFillRoleListReq=new QueryEvaFillRoleListReq();
//  queryEvaFillRoleListReq.setRoleTypeCode("APPLICANT");//sourceId:122292_1
//queryEvaFillRoleListReq.setArchivngType("NOT_ARCHIVE");//sourceId:122317_1
//queryEvaFillRoleListReq.setIsArchive("FALSE");//sourceId:122295_1
//if(reqDto!=null){
//      queryEvaFillRoleListReq.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:122293_1
//    }
//
//    /*3-2-06查评价填报角色列表[2369]   */
//    Assert.isNull(queryEvaFillRoleListReq.getEvaluationTemplateId(),"D3-3新增评价模板评价设置(公共)-3-2-06查评价填报角色列表-评价模板ID不能为空",false);
//Assert.isNull(queryEvaFillRoleListReq.getRoleTypeCode(),"D3-3新增评价模板评价设置(公共)-3-2-06查评价填报角色列表-评价填报角色类型编码不能为空",false);
//Assert.isNull(queryEvaFillRoleListReq.getArchivngType(),"D3-3新增评价模板评价设置(公共)-3-2-06查评价填报角色列表-存档类型不能为空",false);
//Assert.isNull(queryEvaFillRoleListReq.getIsArchive(),"D3-3新增评价模板评价设置(公共)-3-2-06查评价填报角色列表-是否存档不能为空",false);
//      listOmsEvaluationFillRole = mOmsEvaluationFillRoleService.queryEvaFillRoleList(queryEvaFillRoleListReq);
//      Assert.isTrue(listOmsEvaluationFillRole== null||  listOmsEvaluationFillRole ==null|| listOmsEvaluationFillRole.size()==0 ,"返回值不能为空",false);
//
//
//
////步骤4: M3新增模板评价设置【循环开始】 - addTempEvaSetLoopStart
//     //ModelCode: circulationCollections
//        for (OmsEvaluationFillRole circulationCollectionsRes: listOmsEvaluationFillRole){
//
//
////步骤5: D2-3查询选项匹配结果扩展信息详情(公共) - queryOptionMatchResultExtendDetailCom
//     QueryOptionMatchResultExtendDetailComRespDto queryOptionMatchResultExtendDetailComRespDto = null;
//    if(omsEvaluationTemplate !=null){
//          QueryOptionMatchResultExtendDetailComReqDto queryOptionMatchResultExtendDetailComReqDto=new QueryOptionMatchResultExtendDetailComReqDto();
//  queryOptionMatchResultExtendDetailComReqDto.setIsPlatData("TRUE");//sourceId:315180_1
//if(circulationCollectionsRes!=null){
//      queryOptionMatchResultExtendDetailComReqDto.setConfOptionCode(circulationCollectionsRes.getRoleCode());//SimpleFieldAssign//sourceId:122957_1
//    }
//if(reqDto!=null){
//      queryOptionMatchResultExtendDetailComReqDto.setConfItemCode(reqDto.getConfItemCode());//SimpleFieldAssign//sourceId:122959_1
//    }
//if(omsEvaluationTemplate!=null){
//      queryOptionMatchResultExtendDetailComReqDto.setConfSchemeCode(omsEvaluationTemplate.getConfSchemeCode());//SimpleFieldAssign//sourceId:347573_1
//    }
//
//    /*D2-3查询评价角色权重结果(公共)[3232]   */
//    Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfOptionCode(),"D3-3新增评价模板评价设置(公共)-D2-3查询评价角色权重结果(公共)-选项标识不能为空",false);
//Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfItemCode(),"D3-3新增评价模板评价设置(公共)-D2-3查询评价角色权重结果(公共)-配置项标识不能为空",false);
//Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getConfSchemeCode(),"D3-3新增评价模板评价设置(公共)-D2-3查询评价角色权重结果(公共)-配置方案标识不能为空",false);
//Assert.isNull(queryOptionMatchResultExtendDetailComReqDto.getIsPlatData(),"D3-3新增评价模板评价设置(公共)-D2-3查询评价角色权重结果(公共)-是否平台数据不能为空",false);
//      queryOptionMatchResultExtendDetailComRespDto = confSchemeService.queryOptionMatchResultExtendDetailCom(queryOptionMatchResultExtendDetailComReqDto).getData();
//      Assert.isTrue(queryOptionMatchResultExtendDetailComRespDto== null||  queryOptionMatchResultExtendDetailComRespDto.getOptionResultId() ==null,"返回值不能为空",false);
//
//
//           }
//
////步骤6: 3-3-14新增评价模板评价设置 - addEvaTempEvaSet
//     String string = null;
//    if(omsEvaluationObjectTargetCycle !=null){
//          OmsEvaluationTemplateEvaluationSet omsEvaluationTemplateEvaluationSet=new OmsEvaluationTemplateEvaluationSet();
//  omsEvaluationTemplateEvaluationSet.setEvaContentTypeCode("EVALUATION_TEMPLATE");//sourceId:122665_1
//if(omsEvaluationObjectTargetCycle!=null){
//      omsEvaluationTemplateEvaluationSet.setEvaObjTargetCycleId(omsEvaluationObjectTargetCycle.getEvaObjTargetCycleId());//SimpleFieldAssign//sourceId:122663_1
//omsEvaluationTemplateEvaluationSet.setTreeTypeCode(omsEvaluationObjectTargetCycle.getTreeTypeCode());//SimpleFieldAssign//sourceId:122669_1
//omsEvaluationTemplateEvaluationSet.setEvaObjTypeCode(omsEvaluationObjectTargetCycle.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:122670_1
//omsEvaluationTemplateEvaluationSet.setEvaObjTableTypeCode(omsEvaluationObjectTargetCycle.getEvaObjTableTypeCode());//SimpleFieldAssign//sourceId:122671_1
//omsEvaluationTemplateEvaluationSet.setEvaObjEntityId(omsEvaluationObjectTargetCycle.getEvaObjEntityId());//SimpleFieldAssign//sourceId:122672_1
//    }
//if(circulationCollectionsRes!=null){
//      omsEvaluationTemplateEvaluationSet.setEvaluationFillRoleId(circulationCollectionsRes.getEvaluationFillRoleId());//SimpleFieldAssign//sourceId:122664_1
//    }
//if(reqDto!=null){
//      omsEvaluationTemplateEvaluationSet.setEvaContentId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:122666_1
//omsEvaluationTemplateEvaluationSet.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:122667_1
//omsEvaluationTemplateEvaluationSet.setBatchCode(reqDto.getBatchCode());//SimpleFieldAssign//sourceId:122674_1
//    }
//if(queryOptionMatchResultExtendDetailComRespDto!=null && queryOptionMatchResultExtendDetailComRespDto.getExtensionField1()!=null){
//    // TODO: 2022/10/3 晓东，未转换，未判空
//    omsEvaluationTemplateEvaluationSet.setEvaWeightValue(Long.valueOf(queryOptionMatchResultExtendDetailComRespDto.getExtensionField1()));//SimpleFieldAssign//sourceId:122668_1
//    }
//if(omsEvaluationObject!=null){
//      omsEvaluationTemplateEvaluationSet.setEvaluationObjectId(omsEvaluationObject.getEvaluationObjectId());//SimpleFieldAssign//sourceId:122673_1
//    }
//
//    /*3-3-14新增评价模板评价设置[3226]   */
//    Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaObjTargetCycleId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-被评对象目标周期ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaluationFillRoleId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-评价填报角色ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaContentTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-评价内容类型编码不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaContentId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-评价内容ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaluationTemplateId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-评价模板ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaWeightValue(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-评价权重不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getTreeTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-冗余树类型编码不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaObjTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-冗余被评对象类型编码不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaObjTableTypeCode(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-冗余被评对象内容表类型编码不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaObjEntityId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-冗余被评对象内容表主键ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getEvaluationObjectId(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-冗余评价对象ID不能为空",false);
//Assert.isNull(omsEvaluationTemplateEvaluationSet.getBatchCode(),"D3-3新增评价模板评价设置(公共)-3-3-14新增评价模板评价设置-批次标识不能为空",false);
//      string = mOmsEvaluationTemplateEvaluationSetService.addEvaTempEvaSet(omsEvaluationTemplateEvaluationSet);
//
//
//
//           }
//
////步骤7: M3-执行【循环结束】 - implementEndCycle
//     //ModelCode: circulationEnd
//        }
//
//
////步骤8: D3-3更新评价主题当前步骤(公共) - refreshEvaThemeCurrentBstepCom
//     RefreshEvaThemeCurrentBstepComRespDto refreshEvaThemeCurrentBstepComRespDto = null;
//    RefreshEvaThemeCurrentBstepComReqDto refreshEvaThemeCurrentBstepComReqDto=new RefreshEvaThemeCurrentBstepComReqDto();
//  refreshEvaThemeCurrentBstepComReqDto.setOrderNumber(Long.valueOf(4));//CUSTOM_CONVENTION//sourceId:361528_1
//if(reqDto!=null){
//      refreshEvaThemeCurrentBstepComReqDto.setEvaluationTemplateId(reqDto.getEvaluationTemplateId());//SimpleFieldAssign//sourceId:361526_1
//    }
//
//    /*D3-3更新评价主题当前步骤(公共)[4615]   */
//    Assert.isNull(refreshEvaThemeCurrentBstepComReqDto.getEvaluationTemplateId(),"D3-3新增评价模板评价设置(公共)-D3-3更新评价主题当前步骤(公共)-评价模板ID不能为空",false);
//Assert.isNull(refreshEvaThemeCurrentBstepComReqDto.getOrderNumber(),"D3-3新增评价模板评价设置(公共)-D3-3更新评价主题当前步骤(公共)-排序不能为空",false);
//      refreshEvaThemeCurrentBstepComRespDto = offStateService.refreshEvaThemeCurrentBstepCom(refreshEvaThemeCurrentBstepComReqDto);
//
//
//
//
        AddEvaTempEvaSetComRespDto retData = new AddEvaTempEvaSetComRespDto();


        return retData;
    }


}
